﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class ShopNPC : NPC 
    {
        private string item;
        
        public string Item { get; set; }
        public ShopNPC(string name,DW dW,string item):base(name,dW) 
        {
            this.item = item;
        }
        public override void Hello()
        {
            Console.WriteLine("商店NPC{0},有{1}，你要吗",base.Name,this.item);
        }
    }
}
